package bgai.players;

import bgai.gamelogic.CheckerColor;

public abstract class AbstractPlayer implements Player {
	
	/**
	 * Colore di questo giocatore
	 */
	protected CheckerColor color;
	

	
	public AbstractPlayer(CheckerColor color) {
		this.color= color;
	}
	
	@Override
	public CheckerColor getColor(){
		return color;	
	}
	
	@Override
	public void setColor(CheckerColor color) {
		this.color= color;
	}
	
	@Override
	public String toString(){
		
		if(color==CheckerColor.WHITE){
		
			return "bianco";
		}
			
		else if(color==CheckerColor.BLACK){
			
			return "nero";
		}
		
		else
			
			return "NON DEFINITO";
		
	}
	
	
}
